Class_name = "CTurret"
object_name = "TurretFelixF2A_2_WM"

[COCKPIT_LIMITS]
x= -0.16, 0.315
y= -0.32, 0.1
z= -0.28, 0.28
[END]

VisualImage=0,"graphics/planes/FelixF2A/FelixF2A_C2_WM_Low.MGM",1
VisualImage=1,"graphics/planes/FelixF2A/FelixF2A_C2_WM.MGM",0

CollisionBody="graphics/planes/FelixF2A/FelixF2A_C2_WM.col"
CameraRestrict=0.5
VisualRadius=2.0

mp_site=true

[attach=0]
	position = 0.0, 0.35, 0.0
	object = "LuaScripts/WorldObjects/BotGunnerDavis.txt"
[end]

[attach=1]
	position = 0.0, 0.0, 0.0
	object = "LuaScripts/WorldObjects/TurretRiffle.txt"
[end]

[attach=2]
	position = 0.0, 0.0, 0.0
	object = "LuaScripts/WorldObjects/TurretCamera.txt"
[end]

TargetingScript = "LuaScripts/WorldObjects/Ballistics/BULLET_GER_792x57_SS.bin"

SoundScript="LuaScripts/HP400_T1_WM.cfg"

gauges_low_cmd=0,0
gauges_low_cmd=1,1
gauges_low_cmd=2,2
gauges_low_cmd=3,3
gauges_low_cmd=4,4
gauges_low_cmd=5,5
gauges_low_cmd=6,6
gauges_med_cmd=0,7
gauges_med_cmd=1,8
gauges_med_cmd=2,9
gauges_med_cmd=3,10

//FetchArgVal= cockpit_arg_num, transfer_number, default_cockpit_arg_val, interpolation_type (clamp - shortest on line scale, wrap - shortest on cyclic scale)
FetchArgVal=204,   017, 0.00, "Smooth_wrap"  //   
FetchArgVal=206,   018, 0.00, "Smooth_wrap"  //   
FetchArgVal=205,   019, 0.00, "Smooth_clamp" //   
FetchArgVal=9004,  022, 0.00, "Smooth_clamp"  //  
FetchArgVal=12900, 024, 0.00, "Smooth_clamp" // . 
FetchArgVal=8201,  102, 0.00, "Smooth_clamp" // 
FetchArgVal=8251,  103, 0.00, "Smooth_clamp" // 


[TurretsPos=1]
	position = 0.406743, 0.617254, 0.290687
	PosMoveArg = 21000

	// Joints in orientation order!!!

	[Joint=0]
		SectorAngleMin = -0.5
		SectorAngleMax = 0.5

		AngularSpeed   = 30.0
		
		AnimationArgMin = 0.498611111
		AnimationArgMax = 0.501388889

		AnimationArgNum = 21001

		Point = 0.0, 0.0, 0.0
		Axis = 0.0,1.0,0.0

		IsCycled = false
		IsFullAngle = false
		NextLinkedId = 1

		SoundNumber = 1
	[end]

	[Joint=1]
		SectorAngleMin = -20.0
		SectorAngleMax = 20.0
		
		AngularSpeed   = 30.0

		AnimationArgMin = 0.444444444
		AnimationArgMax = 0.555555556

		AnimationArgNum = 21006

		Point = 0, 0.121212, 0.0
		Axis  = 0.0, 1.0, 0.0
		
		IsCycled = false

		SoundNumber = 2
		
	[end]

	[Joint=2]
		SectorAngleMin = 27
		SectorAngleMax = 60
		
		AngularSpeed = 30.0

		AnimationArgMin = 0.575
		AnimationArgMax = 0.66666667

		AnimationArgNum = 21007
		
		Point = 0,0,0
		Axis  = 0.0, 0.0, 1.0

	[end]

	[GunAnimation=0]
		FireArg = 9040
	[end]

	FireLightArg=60220

	relativeBotStand = -0.455, -0.145, -0.34
	relativeBotSit = -0.5, -0.155, -0.34
	relativeBotDead = -0.455, -0.155, -0.34
	TransitionStandPower = 3
	TransitionDeadPower = 1

	BotAttachJointId = 0
	BotFirstAnimJointId = 2
	BotSecondAnimJointId  = 1
	
	SightPosition = 0.0, 0.5, 0.0
	defaultDirection = 1.0, -1.0, 0.0
//	AimSector=0,0,-1,90

	CamDisplacement = -0.44, 0.125, -0.048
[end]


[TurretsGun=1]

	Displacement = 1.5776, 0.0734, 0.0

	GunType = "LuaScripts/WorldObjects/Weapons/Davis.txt"

	ReLoadingStagesTime = 1.5, 5.0, 1.5, 0.1
 
	MaxRoundsInMagazine = 1
	RoundsInMagazine = 1
	MaxReservedMagazines = 16
	ReservedMagazines = 16
	MaxMisFiresInMagazine = 0
	AmountRoundsWithOneTracer = 1

	GunSoundsIdx = 1
	ShotSoundType = 0

	ReservedMagazinesArgIdx = 9181
	FlashAnimationArgIdx = 9040
	TriggerPositionArgIdx = 9000
	RoundsInMagazineArgIdx = 9046
	HideAmmunitionArgIdx = 9045
	ReLoadingArgIdx = 9044
	AzimuthDeviationArgIdx = 9012
	ElevationDeviationArgIdx = 9013
	FiringPinPositionArgIdx = 9016

	BarrelTemperatureDecreaseCorrectionData = 1.0, 4.0, 300.0
	BulletDispertionAngleCorrectionCoefficient = 1.0

	Deviation = 0.1, 0.1, 0.9, 0.02, 0.1
	ParallaxDistance = 180.0
	
	NumOfAnimations = 4

//	BushCoord = 0, 0, 0
//	BushSpeed = 0.0, 0.0, 0.0

//	BushConfig = "LuaScripts/WorldObjects/Trash/BatchTrashBush.txt"
	
	[bullet=0]
		Config = "LuaScripts/WorldObjects/Ballistics/SHELL_GBR_57x390_HE.txt"
	[end]

[end]

SightPos = 0.0, 0.1, 0.0
PositionChangeTime = 0.5
ReloadDelay = 0.3
ShootOutSoundID = 0

BotRotaionValueZ = 0	//-2.0
LegsParameter = 0

BotMaxSecondAngle = 25.0
BotMinSecondAngle = -25.0

BotMaxFirstAngle  = 60.0
BotMinFirstAngle  = 27.0 

FirstToSecondInterp = 0.0

TotalSectorLimits = 2

//   ,         
SectorLimits0 = -180.0,  -10.0,  -47.0, +90.0
SectorLimits1 = -10.0,  +180.0,  -50.0, +90.0

// Damage

Armor=0 	
LifeRate=500 	
LifeRateFg=5000 
Firing=0.0 
